package com.macro.mall.common.exception;

import com.macro.mall.common.api.IErrorCode;

/**
 * @author wangwang
 * @version 1.0
 * @description api断言处理类
 * @date 2025/7/20 19:23
 */
public class Assert {
    public static void fail(String message){
        throw new ApiException(message);
    }

    public static void fail(IErrorCode errorCode){
        throw new ApiException(errorCode);
    }
}
